package OOP.Poly_Exercise.PolyExercise_Parameter;

public class OrdinaryEmployee extends Employee {
    //构造器
    public OrdinaryEmployee(String name, double salary) {
        super(name,salary);
    }

    //work方法
    public void work(){
        System.out.println("Ordinary Employee working");
    }
    //getAnnual方法
    public String getAnnual(){
        return "Ordinary Employee :"+getSalary();
    }

}
